package com.kongjs.application.service;

import com.kongjs.application.model.dto.*;
import com.kongjs.application.model.entity.Roles;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.security.access.prepost.PreAuthorize;

import java.io.Serializable;
import java.util.List;


public interface IRolesService extends IService<Roles> {

    boolean save(SaveRoleDTO dto);


    boolean remove(Long id);


    boolean update(UpdateRoleDTO dto);


    QueryRoleDTO query(Long id);


    List<QueryRoleDTO> queryList();


    List<QueryRoleDTO> trees();


    PageDTO<QueryRoleDTO> page(PageQueryDTO dto, QueryRoleParamDTO paramDTO);
}
